package com.example.springbootspringsession;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * @CrossOrigin 跨域配置
 */
@CrossOrigin(originPatterns = "*",allowedHeaders = "*",methods = {}, allowCredentials = "true")
@EnableRedisHttpSession
@SpringBootApplication
public class SpringbootSpringsessionApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootSpringsessionApplication.class, args);
    }

}
